﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Extentions;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 分享记录
    /// </summary>
    [ExLanguageKey("SysShareRecord")]
    public partial class SysShareRecordExPost
    {
        /// <summary>
        /// 
        /// </summary>
        [ExLanguageKey("SysShareRecordID")]
        [Key]
        public int SysShareRecordID { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        [ExLanguageKey("SysCustomerID")]
        public int SysCustomerID { get; set; }

        /// <summary>
        /// 分享类型;分享公众号=0,分享注册二维码=100
        /// </summary>
        [ExLanguageKey("EnumShareType")]
        public EnumShareType EnumShareType { get; set; }

        /// <summary>
        /// 分享ticket
        /// </summary>
        [ExLanguageKey("ShareTicket")]
        public string ShareTicket { get; set; }

        /// <summary>
        /// 分享到期时间
        /// </summary>
        [ExLanguageKey("ExpireDate")]
        public DateTime? ExpireDate { get; set; }

        /// <summary>
        /// 分享URL
        /// </summary>
        [ExLanguageKey("ShareUrl")]
        public string ShareUrl { get; set; }

        /// <summary>
        /// 当前分享次数;有判断逻辑防止重复领奖,如果成功之后的分享次数与要领奖的次数的一样的,则不领奖
        /// </summary>
        [ExLanguageKey("ShareCount")]
        public int ShareCount { get; set; }

        /// <summary>
        /// 是否达到条件;默认false,注册条件有2种,1.关注公众号 2.绑定了车辆并审核成功
        /// </summary>
        [ExLanguageKey("IsComplete")]
        public bool IsComplete { get; set; }

        /// <summary>
        /// 达到条件时间
        /// </summary>
        [ExLanguageKey("CompleteDate")]
        public DateTime? CompleteDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ExLanguageKey("Remark")]
        public string Remark { get; set; }
    }
}
